package com.s666.demo.config.xml;

import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.ImportResource;

import java.util.*;

@Configuration
@ImportResource(locations={"classpath:config/xml/params.xml"})
public class XmlParamsCfg {

    // 小实例
    private String name;
    private String [] empName;//数组
    private List<Employee> empList;//list集合
    private Set<Employee> empsets;//set集合
    private Map<String,Employee> empMaps;//map集合
    private Properties pp;//Properties的使用


    public Set<Employee> getEmpsets() {
        return empsets;
    }
    public void setEmpsets(Set<Employee> empsets) {
        this.empsets = empsets;
    }
    public String[] getEmpName() {
        return empName;
    }
    public void setEmpName(String[] empName) {
        this.empName = empName;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public List<Employee> getEmpList() {
        return empList;
    }
    public void setEmpList(List<Employee> empList) {
        this.empList = empList;
    }
    public Map<String, Employee> getEmpMaps() {
        return empMaps;
    }
    public void setEmpMaps(Map<String, Employee> empMaps) {
        this.empMaps = empMaps;
    }
    public Properties getPp() {
        return pp;
    }
    public void setPp(Properties pp) {
        this.pp = pp;
    }

    /**
     * 业务数据, 用于类型和状态等
     */
    // 字库表类型
    private Map<String,String> zikuTypes = new HashMap<>();

    public Map<String, String> getZikuTypes() {
        return zikuTypes;
    }

    public void setZikuTypes(Map<String, String> zikuTypes) {
        this.zikuTypes = zikuTypes;
    }

    private List<String> letters;//list集合

    public List<String> getLetters() {
        return letters;
    }

    public void setLetters(List<String> letters) {
        this.letters = letters;
    }
}